package Demo1;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-${ MONTH }-20
 * Time: 14:29
 */
public class Bird extends Animals implements IFly{
    public Bird(String name, int age) {
        super(name, age);
    }

    public void eat(){
        System.out.println(this.name+"正在吃鸟粮");
    }

    public void fly(){
        System.out.println(this.name+"正在飞");
    }
}
